home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 4 / BBS in a Box - Macintosh - Volume IV (January 1992) (BBS in a Box).iso / Files / Hyper / Hy-Hyperi / HyperFinder Tools.cpt / HyperFinder Tools / HyperFinder Tools / card_3322.txt < prev    next >
Encoding:
Text File  |  1988-07-31  |  1.8 KB  |  78 lines

  1. -- card: 3322 from stack: in
  2. -- bmap block id: 4818
  3. -- flags: 4000
  4. -- background id: 5772
  5. -- name: Instruction card 4
  6. ----- HyperTalk script -----
  7. on openCard
  8.   set scroll of bkgnd field id 1 to 0
  9. end openCard
  10.  
  11.  
  12. -- part 1 (button)
  13. -- low flags: 00
  14. -- high flags: 0000
  15. -- rect: left=259 top=322 right=341 bottom=292
  16. -- title width / last selected line: 0
  17. -- icon id / first selected line: 0 / 0
  18. -- text alignment: 1
  19. -- font id: 0
  20. -- text size: 12
  21. -- style flags: 0
  22. -- line height: 16
  23. -- part name: Cover up
  24.  
  25.  
  26. -- part contents for background part 2
  27. ----- text -----
  28. RenameFile XCMD
  29.  
  30.  
  31. -- part contents for background part 44
  32. ----- text -----
  33. Form
  34.  
  35. What it does
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. Examples
  43.  
  44.  
  45.  
  46.  
  47. Error codes
  48.  
  49. -- part contents for background part 1
  50. ----- text -----
  51. RenameFile <old file path name>, <new file name>
  52.  
  53. The RenameFile XCMD changes the name of the file, folder, or disk specified in <old file path name> to the name supplied in <new file name>.  The file's original name must be preceeded by its path name if it is not in the root directory (i.e. "Hard Disk:File's Folder:File").  The new file name must not be preceeded by a path name or an error will occur.
  54.  
  55. Rename "Direct Drive 20:", "Dave's HD:"
  56. Rename ":HyperCard Folder:XCMD Stack", "XFCN Stack"
  57. Rename "Dave's HD:HyperCard Folder:", "HC Folder"
  58. Rename it, newName
  59.  
  60. If Rename should fail for any reason, it will return an error code in the HyperCard global variable "the result."
  61. The following error messages are possible:
  62.  
  63. OSErr:  Bad file name
  64. OSErr:  File directory full
  65. OSErr:  Directory not found or incomplete pathname
  66. OSErr:  Duplicate file name and version
  67. OSErr:  External file system
  68. OSErr:  File not found
  69. OSErr:  Problem during rename
  70. OSErr:  I/O error
  71. OSErr:  No such volume
  72. OSErr:  No default volume
  73. OSErr:  Software volume lock
  74. OSErr:  Hardware volume lock
  75.  
  76.  
  77.  
  78.